<div class="col-lg-12 box-header-habilitacao-catalogo">
    <div class="box-pagination">    
        <ul class="pagination-maxbid">
            <li class="header-pagination">Páginas</li>
            <li><a href="#">1</a></li>
        </ul>
        <a class="pull-left" href="#"><i class="fa fa-forward"></i>&nbsp;&nbsp;</a>
        <a class="pull-right" href="/"><i class="fa fa-backward"></i>&nbsp;&nbsp;VOLTA PARA TODAS AS CATEGORIAS</a>

        <div class="clearfix"></div>
    </div>

    <div class="clearfix"></div>
</div>
<div class="row line-info-header-hb">
    <div class="box-info-buttons">
        <div class="col-xs-12 col-md-4 header-info-leilao-lista">
            <div class="header-info-lote-leilao-lista">
                <?php if (!empty($info_habilitacao->LOGO)): ?>
                    <i><img src="/public/images/comitentes/<?php echo $info_habilitacao->LOGO; ?>" width="60px"></i>
                <?php else: ?>
                    <i><img src="/public/images/no_image.jpg" width="60px"></i>
                <?php endif; ?>
                <span>Encerramento</span> 
                <h3>  <?php echo extract_data($info_habilitacao->DATA, '/'); ?> | <?php echo substr(extract_time($info_habilitacao->DATA), 0, 5) ?></h3>
                <p>Rua Doutor Ramos de Azevedo nº 159 / CEP-07012-020 / GUARULHOS-SP </p>
            </div>
        </div>
        <?php
        $has_attr_habilitation = 'show-message-login';
        if (userData()->id > 0 && userData()->loggedin && ( userData()->group != 'member' )):
            $has_attr_habilitation = 'show-message-user-block';
        endif;
        if (userData()->id > 0 && (userData()->group == 'member') && !isEnabled(userData()->id, $info_habilitacao->LEILAO_ID)):
            $has_attr_habilitation = 'role="previewCondicoes"';
        endif;

        if (userData()->id > 0 && (userData()->group == 'member') && isEnabled(userData()->id, $info_habilitacao->LEILAO_ID)):
            $has_attr_habilitation = 'has-habilitacao';
        endif;
        ?>

        <div class="box-icons-responsive">
            <div class="box-internal-icons-responsive">
            <a target="_blank" href="<?php echo site_url('home/PrintCatalogo/' . $info_habilitacao->LEILAO_ID) ?>" class=""><i class="fa fa-print"></i> <br/> Imprimir</a> 
            <a target="_blank" href="<?php echo site_url('contato.html') ?>" class=""><i class="fa fa-clock-o"></i><br/> Visitar </a>
            <a  u-id="<?php echo userData()->id; ?>" l-id="<?php echo $info_habilitacao->LEILAO_ID; ?>" <?php echo $has_attr_habilitation; ?> href="javascript:void" class=""><i class="fa fa-file-word-o"></i><br/> Habilita-se</a>
            <a getCondicoesVendas data-id="<?php echo $info_habilitacao->LEILAO_ID; ?>"  href="javascript:void" class=""><i class="fa fa-file-text"></i> <br/> Condições</a>
            
            <a openPopup href="<?php echo site_url('maxlive-' . $info_habilitacao->LEILAO_ID . '.html') ?>" class="maxlive-icon-response">
                <i class="fa fa-external-link-square text-red_2"></i><br>
                <small>Maxlive</small>
            </a>
            <div class="clear"></div>
            </div>
        </div>

        <div class="box-buttons-habilitacao">
            <div class="col-xs-2 col-md-2 prints">

                <a target="_blank" href="<?php echo site_url('home/PrintCatalogo/' . $info_habilitacao->LEILAO_ID) ?>" class="icon-print-catalogo print-catalogo"> Imprimir Catalogo</a>
            </div>
            <div class="col-xs-2 col-md-2 prints">
                <a target="_blank" href="<?php echo site_url('contato.html') ?>" class="icon-print-catalogo agenda"> Agendar Visita</a>

            </div>
            <div class="col-xs-7 col-md-8 habilitation-home-btn">
                <a openPopup href="<?php echo site_url('maxlive-' . $info_habilitacao->LEILAO_ID . '.html') ?>" class="bt-maxlive pull-right">
                    MAXLIVE<br>
                    <small>Lotes em Tempo Real</small>
                </a>
                <a href="#" getCondicoesVendas  data-id="<?php echo $info_habilitacao->LEILAO_ID; ?>" class="bt-condicoes-venda pull-right">
                    CONDIÇÕES<br>
                    <small>Venda e Pagamento</small>
                </a>
                <a u-id="<?php echo userData()->id; ?>" l-id="<?php echo $info_habilitacao->LEILAO_ID; ?>" <?php echo $has_attr_habilitation; ?> href="#" class="bt-habilitacao pull-right">
                    PARTICIPE DO LEILÃO<br>
                    <small>Habilite-se</small>
                </a>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
